package usermanager

class Unit {
	String unitName
	static belongsTo = [companies : Company]
	static hasMany = [projects: Project]
    static constraints = {
		unitName(size:2..10,  blank : false, unique:true)
		companies(nullable: true)
    }
}
